#import <Foundation/Foundation.h>
void copyString (char *to, char *from)
{
    for ( ; *from != '\0'; ++from, ++to )
        *to = *from;

    *to = '\0';
}

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    void copyString (char *to, char *from);
    char string1[] = "acuch do skopiowania.";
    char string2[50];

    copyString (string2, string1);
    NSLog (@"%s", string2);

    copyString (string2, "Ten te.");
    NSLog (@"%s", string2);

    [pool drain];
    return 0;
}